<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title>Class与Style绑定</title>
    </head>
    <body>
        <script src="../libs/vue.js" charset="utf-8"></script>
        <!-- 对象语法 -->
        <div class="static" v-bind:class="{ 'class-a': isA, 'class-b': isB }">123213</div>
        <script>
            new Vue({
                el: ".static",
                data: {
                    isA: true,
                    isB: false
                }
            })
        </script>

    </body>
</html>
